package org.edu.modules.kaoqin.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ve_hr_kaoqin_jilu")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "考勤记录", description = "考勤记录")
public class VeHrKaoqinJilu implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键、自增长
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键、自增长")
    private String id;
    /**
     * 教师id
     */
//    @Excel(name = "教师id", width = 15)
    @ApiModelProperty(value = "教师id")
    private String teacherid;
    /**
     * 教师姓名
     */
    @Excel(name = "教师姓名", width = 15)
    @ApiModelProperty(value = "教师姓名")
    private String xm;
    /**
     * 工号
     */
    @Excel(name = "工号", width = 15)
    @ApiModelProperty(value = "工号")
    private String gh;
    /**
     * 考勤类型
     */
    @Excel(name = "考勤类型", width = 15)
    @ApiModelProperty(value = "考勤类型")
    private Integer kqtype;
    @TableField(exist = false)
    private String kqtype_dictText;
    /**
     * 考勤描述
     */
    @Excel(name = "考勤描述", width = 15)
    @ApiModelProperty(value = "考勤描述")
    private String kqdesc;
    /**
     * 考勤时间
     */
    @Excel(name = "考勤时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "考勤时间")
    private Date kqtime;
    /**
     * 所属学期码
     */
    @Dict(dictTable = "ve_base_semester", dicText = "XQMC", dicCode = "id")
    @Excel(name = "所属学期码", width = 15)
    @ApiModelProperty(value = "所属学期码")
    private Integer semid;
    /**
     * 记录人
     */
    @Excel(name = "记录人", width = 15)
    @ApiModelProperty(value = "记录人")
    private String createuserid;
    /**
     * 系统ID
     */
//    @Excel(name = "系统ID", width = 15)
    @ApiModelProperty(value = "系统ID")
    private Integer terminalid;
    /**
     * 记录时间
     */
    @Excel(name = "记录时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "记录时间")
    private Date createTime;
}
